import static org.junit.Assert.*; 
import org.junit.After; 
import org.junit.Before; 
import org.junit.Ignore; 
import org.junit.Test; 

public class Test4 { 
	@Before 
	public void setUp() throws Exception { 
		new Liczba(); 
		} 
	@After 
	public void tearDown() throws Exception { 
		} 
	@Test
	(expected = LiczbaException.class) 
	public void testujWyjatek() throws LiczbaException { 
		new Liczba("20", 18); 
		} 
	@Test 
	public void test() throws Exception { 
		char expected = 'F'; 
		char result = Liczba.pobierzZnak(15); 
		assertEquals(expected, result); 
		} 
	@Test 
	public void testPobierz() throws Exception { 
		int result = Liczba.pobierzWartosc('F', 15); 
		int expected = 16; 
		assertSame(result, expected); 
		}
	@Test
	public void smokiSmokiSmoki(){
		try{
			assertEquals(17,Liczba.pobierzWartosc('G', 16));
		}catch(LiczbaException e){
			e.printStackTrace();
		} 
	}
	@Ignore 
	@Test(timeout = 500) 
	public void ignore() throws Exception { 
		new Liczba("45", 17); 
		}
	}